Skip to content

Add auto-sync workflow for dev branch#119

Merged
sebastientaggart merged 1 commit into
devfrom
feature/auto-sync-dev
Apr 12, 2026
Merged

Add auto-sync workflow for dev branch#119
sebastientaggart merged 1 commit into
devfrom
feature/auto-sync-dev

Conversation

@sebastientaggart

Copy link
Copy Markdown
Member

Add a GitHub Actions workflow that automatically fast-forwards dev to match main after every PR merge. If dev has diverged and cannot be fast-forwarded, the workflow opens an issue to alert the team instead of silently failing.

Issue #118

@sebastientaggart

Copy link
Copy Markdown
Member Author

Review Summary

Verdict: APPROVE

Findings

  • [NOTE] If two PRs merge to main in rapid succession, the second workflow run's git push origin dev could fail because the first run already advanced dev, causing a spurious issue to be created — low likelihood and self-healing on the next push to main.
  • [NOTE] The actions/checkout@v5 token parameter correctly uses GITHUB_TOKEN to allow the workflow to push back to dev without needing a PAT, since GITHUB_TOKEN has contents: write permission scoped in this workflow.

@sebastientaggart
sebastientaggart merged commit ca4b6d3 into dev Apr 12, 2026
2 checks passed
@sebastientaggart
sebastientaggart deleted the feature/auto-sync-dev branch April 12, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant